package com.iyundao.io.mapper;

import com.iyundao.io.model.SignIn;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class SignInSqlProvider {

    public String insertSelective(SignIn record) {
        BEGIN();
        INSERT_INTO("signin");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getPartymemberid() != null) {
            VALUES("partymemberid", "#{partymemberid,jdbcType=INTEGER}");
        }
        
        if (record.getActivityid() != null) {
            VALUES("activityid", "#{activityid,jdbcType=INTEGER}");
        }
        
        if (record.getSignintime() != null) {
            VALUES("signintime", "#{signintime,jdbcType=TIMESTAMP}");
        }
        
        return SQL();
    }
}